package com.dms.modules.message.enums;

import lombok.Getter;

/**
 * 业务消息类型枚举
 */
@Getter
public enum BusinessMessageType {
    // 订单消息
    ORDER_CREATED(201, "订单创建"),
    ORDER_PAID(202, "订单支付"),
    ORDER_SHIPPED(203, "订单发货"),
    ORDER_COMPLETED(204, "订单完成"),
    ORDER_CANCELLED(205, "订单取消"),
    ORDER_REFUND(207, "订单退款通知"),

    // 商品消息
    PRODUCT_PRICE_CHANGE(301, "价格变动通知"),
    PRODUCT_STOCK_LOW(302, "库存不足通知"),
    PRODUCT_BACK_IN_STOCK(303, "到货通知"),
    PRODUCT_OFF_SHELF(304, "下架通知"),
    PRODUCT_ON_SHELF(305, "上架通知"),
    PRODUCT_PROMOTION(306, "促销通知"),

    // 社区消息
    POST_LIKED(401, "帖子点赞通知"),
    POST_FAVORITED(402, "帖子收藏通知"),
    COMMENT_LIKED(403, "评论点赞通知");

    private final int code;
    private final String description;

    BusinessMessageType(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
} 